﻿<Application x:Class="PasswordProvider.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vm="clr-namespace:PasswordProvider.ViewModel;assembly=PasswordProvider.ViewModel"
    xmlns:view="clr-namespace:PasswordProvider.View;assembly=PasswordProvider.View">    

    <Application.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/PasswordProvider.View;component/Dictionary/GeneralResources.xaml" />
                <ResourceDictionary>
                    <DataTemplate DataType="{x:Type vm:WelcomeViewModel}">
                        <view:WelcomePage />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:EnterPasswordViewModel}">
                        <view:EnterPasswordPage />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:SitesListViewModel}">
                        <view:SitesListViewPage />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:LogOnSiteDetailsViewModel}">
                        <view:LogOnSiteDetailsPage />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:CreditCardDetailsViewModel}">
                        <view:CreditCardDetailsPage />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:GenericSiteDetailsViewModel}">
                        <view:GenericSiteDetailsView />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:SequentialPageViewerViewModel}">
                        <view:SequentialPageViewerPage />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:ViewOptionsViewModel}">
                        <view:ViewOptionsPage />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:SecurityOptionsViewModel}">
                        <view:SecurityOptionsPage />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:BrowserOptionsViewModel}">
                        <view:BrowserOptionsPage/>
                    </DataTemplate>                    
                    <DataTemplate DataType="{x:Type vm:FileActionsViewModel}">
                        <view:FileActionsPage />
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type vm:SetPasswordViewModel}">
                        <view:SetPasswordPage />
                    </DataTemplate>
                </ResourceDictionary>


            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </Application.Resources>
</Application>
